package ying.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;

import java.io.IOException;

/**
 * ClassName: FilterDemo04
 * Package: ying.filter
 * Description:
 *
 * @Author 刘英杰
 * @Create 2024/10/6 15:13
 * @Version 1.0
 */

//@WebFilter(filterName = "FilterDemo04",urlPatterns = "/*")
@WebFilter("/*")
public class FilterDemo04 implements Filter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println(this + "开始执行");
        chain.doFilter(request, response);
        System.out.println(this + "结束执行");
    }
}
